//
//  BMDataPickerView.m
//  bigmama
//
//  Created by huyuchen on 2017/8/15.
//  Copyright © 2017年 盛成文化. All rights reserved.
//

#import "BMDataPickerView.h"

@implementation BMDataPickerView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self setBackgroundColor:[UIColor clearColor]];
        [self addSubviews];
        
    }
    return self;
}

- (void)addSubviews
{
    self.dataPicker= [[UIPickerView alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(self.frame) - 216 , SCREEN_WIDTH, 216)];
    _dataPicker.showsSelectionIndicator = YES;
    [self.dataPicker setBackgroundColor:[UIColor whiteColor]];
    [self addSubview:_dataPicker];
}

@end
